package io.kiki.stack.http.feign.SpringMvcContract.clientconfig;


public interface FeignClientConfigurer {

    /**
     * @return whether to mark the feign proxy as a primary bean. Defaults to true.
     */
    default boolean primary() {
        return true;
    }

    /**
     * FALSE will only apply configurations from classes listed in
     * <code>configuration()</code>. Will still use parent instance of
     * {@link feign.codec.Decoder}, {@link feign.codec.Encoder}, and
     * {@link feign.Contract} if none are provided.
     *
     * @return weather to inherit parent context for client configuration.
     */
    default boolean inheritParentConfiguration() {
        return true;
    }

}
